import axios from "axios";

// 注册
export function register(email, code, name, password) {
    return axios.post('register', {
        email,
        code,
        name,
        password
    })
}

// 登录
export function login(email, password) {
    return axios.post('login', {
        email,
        password
    })
}

// 发送邮件
export function sendRegisterMail(email) {
    return axios.post('sendRegisterMail', {
        email
    })
}


